﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text.RegularExpressions;

namespace IT_Project_Monopoly
{
    public partial class PlayerInfo : System.Web.UI.UserControl
    {
        public string PlayerAvatar
        {
            set
            {
                playerImage.ImageUrl = value;
            }
            get
            {
                return playerImage.ImageUrl;
            }
        }

        public string PlayerName
        {
            set
            {
                playerName.Text = value;
            }
            get
            {
                return playerName.Text;
            }
        }

        public float PlayerMoney
        {
            set
            {
                playerMoney.Text = Convert.ToString(value);
            }
            get
            {
                return float.Parse(playerMoney.Text);
            }
        }

        public int PlayerPoints
        {
            set
            {
                this.playerPoints.Text = Convert.ToString(value);
            }
            get
            {
                return int.Parse(this.playerPoints.Text);
            }
        }

        public int RollCount
        {
            set
            {
                numbRolls.Text = Convert.ToString(value);
            }
            get
            {
                return int.Parse(numbRolls.Text);
            }
        }

        //da se zameni podobra reprezentacija za vreme

        public string GameTime
        {
            set
            {
                gameTime.Text = value;
            }
            get
            {
                return gameTime.Text;
            }
        }
    }
}